package com.jf.cloud.common.order.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

public class DvyTypeDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "店铺id不能为空")
    private Long shopId;
    @NotNull(message = "配送方式不能为空")
    @Schema(description = "配送类型 1:快递 2:自提 3：无需快递 4:同城配送" )
    private Integer dvyType;

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Integer getDvyType() {
        return dvyType;
    }

    public void setDvyType(Integer dvyType) {
        this.dvyType = dvyType;
    }

    public DvyTypeDTO() {
    }

    public DvyTypeDTO(Long shopId, Integer dvyType) {
        this.shopId = shopId;
        this.dvyType = dvyType;
    }

    @Override
    public String toString() {
        return "DvyTypeDTO{" +
                "shopId=" + shopId +
                ", dvyType=" + dvyType +
                '}';
    }
}
